package com.banmao.c02_abstract_factory.factory.impl;

import com.banmao.c02_abstract_factory.Buttons.Button;
import com.banmao.c02_abstract_factory.Buttons.impl.WindowsButton;
import com.banmao.c02_abstract_factory.checkboxs.Checkbox;
import com.banmao.c02_abstract_factory.checkboxs.impl.WindowsCheckbox;
import com.banmao.c02_abstract_factory.factory.GUIFactory;

// 具体工厂实现类
public class WindowsFactory implements GUIFactory {

    @Override
    public Button createButton() {
        return new WindowsButton();
    }

    @Override
    public Checkbox createCheckbox() {
        return new WindowsCheckbox();
    }

}
